package com.agou.app.admin.demo.easyui.dao;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

import org.hibernate.Query;

import com.agou.app.admin.dbconfig.bean.TDemoEasyuiTree;
import com.agou.core.ss.SSException;

public class EasyuiDemoDao extends IEasyuiDemoDao {

	@SuppressWarnings("unchecked")
	public List<TDemoEasyuiTree> queryEasyuiTree() throws SSException,
			SQLException, IOException {
		StringBuilder sbSql = new StringBuilder();
		sbSql.append("select t from TDemoEasyuiTree t ");
		Query query = this.getJdbcSession().createQuery(sbSql.toString());
		return query.list();
	}

}
